﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0,width=device-width,user-scalable=yes" />
    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/js/layer.mobile/layer.m/need/layer.css")
    @Styles.Render("~/Content/css/site.css")
    @Styles.Render("~/Content/css/fontawesome/css/font-awesome.min.css")
</head>
<body>
    @if (ViewBag.Title != "医途" && ViewBag.header != 0)
    {
        <header class="top-title">
            <span id="left"><a onclick="window.history.go(-1)"><i class="fa fa-arrow-left fa-2x"></i></a></span>
            <span id="center">@ViewBag.Title</span>
            <span id="right">
                <a class="menu-btn">
                    <i class="fa fa-user fa-2x"></i>
                    <ul class="usermenu" style="display:none;">
                        <li><a href="@Url.Action("usercenter", "user")">个人中心</a></li>
                        <li><a href="@Url.Action("index", "commoncenter")">学习中心</a></li>
                        @if(zqdn.Web.App_Start.SessionContext.CurrentUser != null)
                        {
                            <li><a href="@Url.Action("logout", "user")">退出登录</a></li>
                        }
                    </ul>
                </a>
            </span>
        </header>
    }
    @RenderBody()
    @Scripts.Render("~/Content/js/jquery-1.10.2.js")
    @Scripts.Render("~/Content/js/layer.mobile/layer.m/layer.m.js")
    @Scripts.Render("~/Content/js/jquery.form.js")
    @Scripts.Render("~/Content/js/site.js")
    @RenderSection("scripts", required: false)

    <script type="text/javascript">
            $(function () {
                $(".menu-btn").on("click",function () {
                    $(".usermenu").slideToggle();
                });

                $(".wrap").on("click", function () {
                        if ($(".usermenu").is(':hidden')) {
                        } else {
                           $(".usermenu").slideToggle();
                        }
                });

            });
    </script>
</body>
</html>


